package com.tedu.bill.demo1;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.nio.file.NoSuchFileException;

/**
 * Author：毕龙
 * Date: 2024/5/21 10:59
 */
public class TestNotRuntimeException1 {
    public static void main(String[] args)throws IOException {
        m1();
    }


    public static  void m1()throws IOException{
        int n = 0;

        if(n == 1)
            //抛出异常  throw
            //throw new IOException();
            throw new NoSuchFileException("hello");
        else
            throw new FileNotFoundException();


    }
}
